package com.makerjia.magpiebridge.dal.repository.impl;

import com.makerjia.magpiebridge.dal.mapper.TestMapper;
import com.makerjia.magpiebridge.dal.mapper.model.TestDO;
import com.makerjia.magpiebridge.dal.repository.TestRepository;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.Optional;

/**
 * @author caohw
 * @date 2020/6/9
 */
@Repository
public class TestRepositoryImpl implements TestRepository {

    @Resource
    private TestMapper testMapper;

    @Override
    public Optional<TestDO> testDao() {
        return Optional.ofNullable(testMapper.selectOne());
    }
}
